<?php

namespace app\logic\yuql;

use app\api\model\yuql\Order;

class OrderLogic
{

    /**
     * yuql
     * 分佣成功后修改订单为已处理状态
     * @param $data
     * @param $status
     */
    public static function userOrderStatusUp($data, $status)
    {
        $result = Order::where($data)->find();
        $result->status = $status;
        $result->save();
        return $result;
    }

}